/*
 * @Author: 于波 ksdhy.dev@gmail.com
 * @Date: 2025-04-21 20:54:57
 * @LastEditors: 于波 ksdhy.dev@gmail.com
 * @LastEditTime: 2025-04-21 21:59:30
 * @FilePath: \nursing_front\src\router\commonRoutes.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export default [
  {
    path: "elder",
    name: "elder",
    component: () => import("@/views/elder/elder-view.vue"),
    redirect: "/elder/list",
    children: [
      {
        path: "list",
        name: "elder-list",
        component: () => import("@/views/elder/elder-list.vue"),
        meta: {
          icon: "",
          title: "客户管理",
        },
      },
      {
        path: "detail/:id",
        name: "elder-detail",
        component: () => import("@/views/elder/elder-detail.vue"),
        meta: {
          icon: "",
          title: "详情",
          isBack: true,
        },
      },
      {
        path: "edit/:id?",
        name: "elder-edit",
        component: () => import("@/views/elder/elder-edit.vue"),
        meta: {
          icon: "",
          isBack: true,
        },
      },
    ],
    meta: {
      icon: "",
      title: "客户管理",
    },
  },
  {
    path: "task",
    name: "task",
    component: () => import("@/views/task/task-view.vue"),
    redirect: "/task/list",
    children: [
      {
        path: "list",
        name: "task-list",
        component: () => import("@/views/task/task-list.vue"),
      },
      {
        path: "edit/:id?",
        name: "task-edit",
        component: () => import("@/views/task/task-edit.vue"),
        meta: {
          icon: "",
          isBack: true,
        },
      },
    ],
    meta: {
      icon: "",
      title: "任务管理",
    },
  },
  {
    path: "duty",
    name: "duty",
    component: () => import("@/views/duty/DutySchedule.vue"),
    redirect: "/duty/schedule",
    children: [
      {
        path: "schedule",
        name: "duty-schedule",
        component: () => import("@/views/duty/DutySchedule.vue"),
        meta: {
          icon: "schedule",
          title: "排班管理",
        },
      },
      {
        path: "record",
        name: "duty-record",
        component: () => import("@/views/duty/DutyRecord.vue"),
        meta: {
          icon: "document",
          title: "值班记录",
        },
      },
    ],
    meta: {
      icon: "calendar",
      title: "值班管理",
    },
  },
];
